import {requestService} from '/src/utils/request'

// 查询策略列表
export function getConfigList(queryParams) {
    return requestService({
        url: '/xiaozhen-system/alarmConfig/list',
        method: 'get',
        params: queryParams
    })
}

// 新增策略
export function addConfig(data) {
    return requestService({
        url: '/xiaozhen-system/alarmConfig/add',
        method: 'post',
        data: data
    })
}

// 修改策略
export function updateConfig(data) {
    return requestService({
        url: '/xiaozhen-system/alarmConfig/update',
        method: 'put',
        data: data
    })
}

// 删除策略
export function delConfig(configId) {
    return requestService({
        url: '/xiaozhen-system/alarmConfig/' + configId,
        method: 'delete'
    })
}
